{% extends 'base.html' %}

{% load comments %}
{% load bootstrap_pagination %}
{% block main %}
    <main class="col-md-8 mb-1">
        <ul class="list-group mb-1">
            <li class="list-group-item">
                <span class="pull-right">回复总数 {{ paginator.count }}</span>
                <nav>
                    <a href="{% url 'forum:index' %}">django forum demo</a> >
                    <a href="{{ user.get_absolute_url }}">{{ user.nickname }}</a> >
                    <a>全部回复</a>
                </nav>
            </li>
            {% for reply in page_obj %}
                {% include 'users/_user_reply_item.html' %}
            {% empty %}
                <li class="list-group-item">该用户下没有回复</li>
            {% endfor %}
            {% if paginator.count and paginator.num_pages > 1 %}
                {% bootstrap_paginate page_obj size='small' range=10 show_first_last='true' %}
            {% endif %}
        </ul>
    </main>
{% endblock main %}